﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>   
<head>
<title>东方易云后台管理系统</title>
<style>
body { background: #f5f5f5 ;}
</style>

<script>
function addProperty(){
	var errorMsg = "";
	errorMsg += sl_check($("#fcNodeSelect")[0], "交换名称", 10, 1);
	errorMsg += sl_check($("#fcNodeDescSelect")[0], "交换描述", 200, 1);
	errorMsg += sl_check($("#fcSendParamSelect")[0], "发送物理地址", 200, 1);
	errorMsg += sl_check($("#fcRecvParamSelect")[0], "接受物理地址", 200, 1);
	
	if(errorMsg != ""){
		alert(errorMsg);
	}else{
		$('#addForm').submit();
	}
}
	
</script>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
</head>
<body>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <!-- Page Head -->
    <div id="page-title">
    <h3>交换属性维护</h3></div>
    <div class="pgline"></div>
    <div class="notification querytj png_bg">
      <div>
      	<form method="post" action="update" id="addForm" name="addForm">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10%" height="35" align="right"><span class="titlespan">交换名称：</span>
              </td>
            <td width="44%"><input type="text" id="fcNodeSelect" name="fcNodeSelect"  value='<c:out value="${dataxSelfNodePropVO.fcNode}"/>' <c:out value="${dataxSelfNodePropVO.fcNode!=null?'readonly class=input21':'class=input2'}" /> />&nbsp;</td>
            <td width="10%" align="right">交换描述：
              
             </td>
            <td width="40%"><input type="text" id="fcNodeDescSelect" name="fcNodeDescSelect"  class="input2" value='<c:out value="${dataxSelfNodePropVO.fcNodeDesc}"/>'/></td>
          </tr>
          <tr>
            <td height="35"  align="right">发送传输方式：              </td>
            <td height="35"><select name="fcSendTypeSelect" class="select1" >
               <c:forEach var="map" items="${catagoryTransfersMap}">
            	<option value="<c:out value='${map.key }'></c:out>" <c:out value="${dataxSelfNodePropVO.fcCommunSendType==map.key?'Selected':''}"></c:out>><c:out value='${map.value }'></c:out>
          	   </c:forEach>
            </select></td>
            <td  align="right">发送物理地址：              </td>
            <td><input type="text" id="fcSendParamSelect" name="fcSendParamSelect"  class="input2" value='<c:out value='${dataxSelfNodePropVO.fcCommunSendParam}'/>'/></td>
          </tr>
          <tr>
            <td height="35" align="right">接收传输方式：              </td>
            <td height="35"><select name="fcRecvTypeSelect" class="select1" >
              <c:forEach var="map" items="${catagoryTransfersMap}">
            	<option value="<c:out value='${map.key }'></c:out>" <c:out value="${dataxSelfNodePropVO.fcCommunRecvType==map.key?'Selected':''}" />><c:out value='${map.value }'></c:out>
              </c:forEach>
            </select></td>
            <td  align="right">接收物理地址：              </td>
            <td><input type="text" id="fcRecvParamSelect" name="fcRecvParamSelect"  class="input2" value='<c:out value="${dataxSelfNodePropVO.fcCommunRecvParam}"/>'/></td>
          </tr>
          
          <tr>
            <td height="35" align="right">报文格式：              </td>
            <td height="35"><select name="fcMsgFormateId" class="select1" >
              <c:forEach var="map" items="${catagoryMessageFormatMap}">
            	<option value="<c:out value='${map.key }'></c:out>" <c:out value="${dataxSelfNodePropVO.fcMsgFormateId==map.key?'Selected':''}" />><c:out value='${map.value }'></c:out>
              </c:forEach>
            </select></td>
            <td height="35"  align="right">报文类型：              </td>
            <td height="35"><select name="fcMsgTypeSelect" class="select1" >
              <c:forEach var="map" items="${catagoryMessageTypeMap}">
            	<option value="<c:out value='${map.key }'></c:out>" <c:out value="${dataxSelfNodePropVO.fcMsgCharset==map.key?'Selected':''}" />><c:out value='${map.value }'></c:out>
              </c:forEach>
            </select></td>
          </tr>
          <tr>
            <td height="35" align="right">报文编码：            </td>
            <td height="35"><select name="fcMsgCharsetSelect" class="select1">
              <c:forEach var="map" items="${catagoryCharacterMap}">
            	<option value="<c:out value='${map.key }'></c:out>" <c:out value="${dataxSelfNodePropVO.fcMsgType==map.key?'Selected':''}" />><c:out value='${map.value }'></c:out>
              </c:forEach>
            </select></td>
            <td height="35" colspan="2">
          </tr>
          <tr>
            <td height="35" colspan="4" align="center"><div class="line"><a class="button" href="javascript:void(0);" onclick="addProperty();">保存</a> &nbsp;&nbsp;<a class="button" onclick="location.reload();">取消</a></div></td>
          </tr>
        </table>
        </form>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <!-- End #main-content -->
</div>
</body>
</html>
